package org.dev.app.service;

// 创建一个名为 DeptHystrixService 的服务绑定接口，与 micro-service-cloud-provider-dept-hystrix-8004 中提供的服务接口进行绑定

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "MICROSERVICECLOUDPROVIDERDEPTHYSTRIX")
public interface DeptHystrixService {
	@RequestMapping(value = "/dept/hystrix/ok/{id}")
	public String deptInfo_Ok(@PathVariable("id") Integer id);

	@RequestMapping(value = "/dept/hystrix/timeout/{id}")
	public String deptInfo_Timeout(@PathVariable("id") Integer id);
}
